package com.cskaoyan.wx.controller;

import com.cskaoyan.wx.service.WxCataLogService;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.wx.bean.vo.WxCataLogVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ description:
 * @ author:台
 **/

@RestController
public class WxCataLogController {

    @Autowired
    WxCataLogService wxCataLogService;

    @RequestMapping("wx/catalog/index")
    public BaseRespVo wxCatalogIndex(){
        WxCataLogVo wxCataLogVo = wxCataLogService.wxCatalogIndex();
        return BaseRespVo.ok(wxCataLogVo);
    }

    @RequestMapping("wx/catalog/current")
    public BaseRespVo wxCatalogCurrent(Integer id){
        WxCataLogVo wxCataLogVo = wxCataLogService.wxCatalogCurrent(id);
        return BaseRespVo.ok(wxCataLogVo);
    }
}
